
<link type="text/css" href="inc/rl.css" rel="stylesheet">

<fieldset><legend>节点信息</legend>
<table>
	<tr>
		<td width="20%" align="right">名称：</td>
		<td width="80%">{[$node.name]}</td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td></td>
	</tr>   
</table>
</fieldset>

<fieldset><legend>分配用户</legend>
<form id="form_edit">
<input type="hidden" name="id" value="{[$smarty.request.id]}" />
<input type="hidden" name="node" value="{[$node.name]}" />
<table id="priv_add">
	<tr>      
		<td colspan="3" align="left">查找：<input type="text" name="search" id="search" value="" size="16"/></td>
	</tr>
	<tr>
		<td align="center" width="45%">未分配用户</td>
		<td width="10%"></td>
		<td align="center" width="45%">已分配用户</td>
	</tr>
	<tr>
	    <td height="255px" align="center">
		<select multiple="multiple" name="list[]" id="list" style="height:100%;width:100%;">
			{[foreach name=outer key=key item=item from=$result_all]}
			<option value="{[$item.id]}"{[$item.class]}>{[$item.no]}.{[$item.name]} [{[$item.zjm]}/{[$item.dept]}]</option>
			{[/foreach]}</select>
		</td>
		<td align="center" height="180px"><div id="rl">
			<a href="#" id="addT" class="button" >&raquo;</a><br>
			<a href="#" id="addAllT" class="button" >&raquo;&raquo;</a><br>
			<a href="#" id="removeT" class="button">&laquo;</a><br>
			<a href="#" id="removeAllT" class="button">&laquo;&laquo;</a></div>
		</td>
		<td height="255px" align="center">
		<select multiple="multiple" name="emp[]" id="emp" style="height:100%;width:100%;">
			{[foreach name=outer key=key item=item from=$result]}
			<option value="{[$item.id]}">{[$item.no]}.{[$item.name]}</option>
			{[/foreach]}</select>
		</td>
	</tr>
</table>
</form>
</fieldset>

<script type='text/javascript'>

$(function() {
	$('#list').transfer({
		to: '#emp',
		searchId: '#search',
		dblClick: true,
		searchText: '{count} options matching {keyword}',
		searchTextId: '#searchText',
		addId: '#addT',
		removeId: '#removeT', 
		addAllId: '#addAllT', 
		removeAllId: '#removeAllT',
		tClass: 'added'
	});
});

</script>
